home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / Applet Toolkit / appletfont.c < prev    next >
MacBinary  |  1992-10-11  |  6.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Oct 11 14:30:00 1992, modified Sun Oct 11 14:30:00 1992, creator Think C, type ASCII, 5706 bytes "appletfont.c" , at 0x16ca 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 61 70 70 6c 65 74 | 66 6f 6e 74 2e 63 00 00 |..applet|font.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 16 4a 00 | 00 01 7e a6 fe 23 28 a6 |......J.|..~..#(.|
|00000060| fe 23 28 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.#(.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2e e4 00 00 |........|........|
|00000080| 0d 2f 2a a9 20 43 6f 70 | 79 72 69 67 68 74 20 31 |./*. Cop|yright 1|
|00000090| 39 38 38 2d 31 39 39 32 | 20 55 73 65 72 4c 61 6e |988-1992| UserLan|
|000000a0| 64 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |d Softwa|re, Inc.|
|000000b0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|000000c0| 65 72 76 65 64 2e 2a 2f | 0d 0d 0d 23 69 6e 63 6c |erved.*/|...#incl|
|000000d0| 75 64 65 20 22 61 70 70 | 6c 65 74 64 65 66 73 2e |ude "app|letdefs.|
|000000e0| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 61 70 70 |h".#incl|ude "app|
|000000f0| 6c 65 74 73 74 72 69 6e | 67 73 2e 68 22 0d 23 69 |letstrin|gs.h".#i|
|00000100| 6e 63 6c 75 64 65 20 22 | 61 70 70 6c 65 74 66 6f |nclude "|appletfo|
|00000110| 6e 74 2e 68 22 0d 0d 0d | 23 64 65 66 69 6e 65 20 |nt.h"...|#define |
|00000120| 73 74 79 6c 65 73 65 70 | 61 72 61 74 6f 72 20 22 |stylesep|arator "|
|00000130| 5c 70 2b 22 0d 0d 46 6f | 6e 74 49 6e 66 6f 20 67 |\p+"..Fo|ntInfo g|
|00000140| 6c 6f 62 61 6c 66 6f 6e | 74 69 6e 66 6f 3b 0d 0d |lobalfon|tinfo;..|
|00000150| 23 64 65 66 69 6e 65 20 | 63 74 73 74 79 6c 65 73 |#define |ctstyles|
|00000160| 20 37 20 0d 0d 73 68 6f | 72 74 20 73 74 79 6c 65 | 7 ..sho|rt style|
|00000170| 73 61 72 72 61 79 20 5b | 63 74 73 74 79 6c 65 73 |sarray [|ctstyles|
|00000180| 5d 20 3d 20 0d 09 0d 09 | 7b 30 2c 20 62 6f 6c 64 |] = ....|{0, bold|
|00000190| 2c 20 69 74 61 6c 69 63 | 2c 20 75 6e 64 65 72 6c |, italic|, underl|
|000001a0| 69 6e 65 2c 20 0d 09 0d | 09 62 6f 6c 64 20 2b 20 |ine, ...|.bold + |
|000001b0| 69 74 61 6c 69 63 2c 20 | 62 6f 6c 64 20 2b 20 75 |italic, |bold + u|
|000001c0| 6e 64 65 72 6c 69 6e 65 | 2c 20 0d 09 0d 09 69 74 |nderline|, ....it|
|000001d0| 61 6c 69 63 20 2b 20 75 | 6e 64 65 72 6c 69 6e 65 |alic + u|nderline|
|000001e0| 7d 3b 0d 0d 0d 0d 0d 76 | 6f 69 64 20 73 65 74 66 |};.....v|oid setf|
|000001f0| 6f 6e 74 73 69 7a 65 73 | 74 79 6c 65 20 28 73 68 |ontsizes|tyle (sh|
|00000200| 6f 72 74 20 66 6f 6e 74 | 6e 75 6d 2c 20 73 68 6f |ort font|num, sho|
|00000210| 72 74 20 66 6f 6e 74 73 | 69 7a 65 2c 20 73 68 6f |rt fonts|ize, sho|
|00000220| 72 74 20 66 6f 6e 74 73 | 74 79 6c 65 29 20 7b 0d |rt fonts|tyle) {.|
|00000230| 0d 09 54 65 78 74 46 6f | 6e 74 20 28 66 6f 6e 74 |..TextFo|nt (font|
|00000240| 6e 75 6d 29 3b 0d 09 0d | 09 54 65 78 74 53 69 7a |num);...|.TextSiz|
|00000250| 65 20 28 66 6f 6e 74 73 | 69 7a 65 29 3b 0d 09 0d |e (fonts|ize);...|
|00000260| 09 54 65 78 74 46 61 63 | 65 20 28 66 6f 6e 74 73 |.TextFac|e (fonts|
|00000270| 74 79 6c 65 29 3b 0d 09 | 7d 20 2f 2a 73 65 74 66 |tyle);..|} /*setf|
|00000280| 6f 6e 74 73 69 7a 65 73 | 74 79 6c 65 2a 2f 0d 09 |ontsizes|tyle*/..|
|00000290| 0d 09 0d 76 6f 69 64 20 | 73 65 74 67 6c 6f 62 61 |...void |setgloba|
|000002a0| 6c 66 6f 6e 74 73 69 7a | 65 73 74 79 6c 65 20 28 |lfontsiz|estyle (|
|000002b0| 73 68 6f 72 74 20 66 6f | 6e 74 6e 75 6d 2c 20 73 |short fo|ntnum, s|
|000002c0| 68 6f 72 74 20 66 6f 6e | 74 73 69 7a 65 2c 20 73 |hort fon|tsize, s|
|000002d0| 68 6f 72 74 20 66 6f 6e | 74 73 74 79 6c 65 29 20 |hort fon|tstyle) |
|000002e0| 7b 0d 0d 09 73 65 74 66 | 6f 6e 74 73 69 7a 65 73 |{...setf|ontsizes|
|000002f0| 74 79 6c 65 20 28 66 6f | 6e 74 6e 75 6d 2c 20 66 |tyle (fo|ntnum, f|
|00000300| 6f 6e 74 73 69 7a 65 2c | 20 66 6f 6e 74 73 74 79 |ontsize,| fontsty|
|00000310| 6c 65 29 3b 0d 09 0d 09 | 47 65 74 46 6f 6e 74 49 |le);....|GetFontI|
|00000320| 6e 66 6f 20 28 26 67 6c | 6f 62 61 6c 66 6f 6e 74 |nfo (&gl|obalfont|
|00000330| 69 6e 66 6f 29 3b 0d 09 | 7d 20 2f 2a 73 65 74 67 |info);..|} /*setg|
|00000340| 6c 6f 62 61 6c 66 6f 6e | 74 73 69 7a 65 73 74 79 |lobalfon|tsizesty|
|00000350| 6c 65 2a 2f 0d 09 0d 09 | 0d 73 68 6f 72 74 20 73 |le*/....|.short s|
|00000360| 65 74 6e 61 6d 65 64 66 | 6f 6e 74 20 28 62 69 67 |etnamedf|ont (big|
|00000370| 73 74 72 69 6e 67 20 62 | 73 2c 20 73 68 6f 72 74 |string b|s, short|
|00000380| 20 66 73 69 7a 65 2c 20 | 73 68 6f 72 74 20 66 73 | fsize, |short fs|
|00000390| 74 79 6c 65 2c 20 73 68 | 6f 72 74 20 64 65 66 61 |tyle, sh|ort defa|
|000003a0| 75 6c 74 66 6f 6e 74 29 | 20 7b 0d 0d 09 2f 2a 0d |ultfont)| {.../*.|
|000003b0| 09 67 69 76 65 20 6d 65 | 20 74 68 65 20 6e 61 6d |.give me| the nam|
|000003c0| 65 20 6f 66 20 61 20 66 | 6f 6e 74 20 79 6f 75 20 |e of a f|ont you |
|000003d0| 6c 69 6b 65 2e 20 20 49 | 27 6c 6c 20 74 72 79 20 |like. I|'ll try |
|000003e0| 74 6f 20 73 65 74 20 74 | 6f 20 74 68 61 74 20 66 |to set t|o that f|
|000003f0| 6f 6e 74 2c 0d 09 62 75 | 74 20 69 66 20 69 74 73 |ont,..bu|t if its|
|00000400| 20 6e 6f 74 20 61 76 61 | 69 6c 61 62 6c 65 2c 20 | not ava|ilable, |
|00000410| 79 6f 75 20 67 65 74 20 | 74 68 65 20 64 65 66 61 |you get |the defa|
|00000420| 75 6c 74 20 66 6f 6e 74 | 2e 20 20 62 65 20 73 75 |ult font|. be su|
|00000430| 72 65 20 74 6f 20 73 65 | 6c 65 63 74 0d 09 61 20 |re to se|lect..a |
|00000440| 64 65 66 61 75 6c 74 20 | 66 6f 6e 74 20 74 68 61 |default |font tha|
|00000450| 74 20 69 73 20 6d 61 6e | 64 61 74 6f 72 79 20 2d |t is man|datory -|
|00000460| 2d 20 6c 69 6b 65 20 67 | 65 6e 65 76 61 20 6f 72 |- like g|eneva or|
|00000470| 20 6e 65 77 59 6f 72 6b | 2e 0d 09 2a 2f 0d 09 0d | newYork|...*/...|
|00000480| 09 73 68 6f 72 74 20 66 | 6f 6e 74 6e 75 6d 3b 0d |.short f|ontnum;.|
|00000490| 09 0d 09 47 65 74 46 4e | 75 6d 20 28 62 73 2c 20 |...GetFN|um (bs, |
|000004a0| 26 66 6f 6e 74 6e 75 6d | 29 3b 0d 09 0d 09 69 66 |&fontnum|);....if|
|000004b0| 20 28 66 6f 6e 74 6e 75 | 6d 20 3d 3d 20 30 29 20 | (fontnu|m == 0) |
|000004c0| 0d 09 09 66 6f 6e 74 6e | 75 6d 20 3d 20 64 65 66 |...fontn|um = def|
|000004d0| 61 75 6c 74 66 6f 6e 74 | 3b 20 2f 2a 75 73 65 20 |aultfont|; /*use |
|000004e0| 63 61 6c 6c 65 72 27 73 | 20 73 65 63 6f 6e 64 20 |caller's| second |
|000004f0| 63 68 6f 69 63 65 2a 2f | 0d 09 09 0d 09 73 65 74 |choice*/|.....set|
|00000500| 67 6c 6f 62 61 6c 66 6f | 6e 74 73 69 7a 65 73 74 |globalfo|ntsizest|
|00000510| 79 6c 65 20 28 66 6f 6e | 74 6e 75 6d 2c 20 66 73 |yle (fon|tnum, fs|
|00000520| 69 7a 65 2c 20 66 73 74 | 79 6c 65 29 3b 0d 09 0d |ize, fst|yle);...|
|00000530| 09 72 65 74 75 72 6e 20 | 28 66 6f 6e 74 6e 75 6d |.return |(fontnum|
|00000540| 29 3b 20 2f 2a 72 65 74 | 75 72 6e 20 74 68 65 20 |); /*ret|urn the |
|00000550| 66 6f 6e 74 20 74 68 61 | 74 20 77 65 20 61 72 65 |font tha|t we are|
|00000560| 20 61 63 74 75 61 6c 6c | 79 20 75 73 69 6e 67 2a | actuall|y using*|
|00000570| 2f 0d 09 7d 20 2f 2a 73 | 65 74 6e 61 6d 65 64 66 |/..} /*s|etnamedf|
|00000580| 6f 6e 74 2a 2f 0d 09 09 | 0d 0d 76 6f 69 64 20 67 |ont*/...|..void g|
|00000590| 65 74 66 6f 6e 74 73 69 | 7a 65 73 74 79 6c 65 20 |etfontsi|zestyle |
|000005a0| 28 73 68 6f 72 74 20 2a | 66 6f 6e 74 6e 75 6d 2c |(short *|fontnum,|
|000005b0| 20 73 68 6f 72 74 20 2a | 66 6f 6e 74 73 69 7a 65 | short *|fontsize|
|000005c0| 2c 20 73 68 6f 72 74 20 | 2a 66 6f 6e 74 73 74 79 |, short |*fontsty|
|000005d0| 6c 65 29 20 7b 0d 0d 09 | 2a 66 6f 6e 74 6e 75 6d |le) {...|*fontnum|
|000005e0| 20 3d 20 28 2a 71 75 69 | 63 6b 64 72 61 77 67 6c | = (*qui|ckdrawgl|
|000005f0| 6f 62 61 6c 20 28 74 68 | 65 50 6f 72 74 29 29 2e |obal (th|ePort)).|
|00000600| 74 78 46 6f 6e 74 3b 0d | 09 0d 09 2a 66 6f 6e 74 |txFont;.|...*font|
|00000610| 73 69 7a 65 20 3d 20 28 | 2a 71 75 69 63 6b 64 72 |size = (|*quickdr|
|00000620| 61 77 67 6c 6f 62 61 6c | 20 28 74 68 65 50 6f 72 |awglobal| (thePor|
|00000630| 74 29 29 2e 74 78 53 69 | 7a 65 3b 0d 09 0d 09 2a |t)).txSi|ze;....*|
|00000640| 66 6f 6e 74 73 74 79 6c | 65 20 3d 20 28 2a 71 75 |fontstyl|e = (*qu|
|00000650| 69 63 6b 64 72 61 77 67 | 6c 6f 62 61 6c 20 28 74 |ickdrawg|lobal (t|
|00000660| 68 65 50 6f 72 74 29 29 | 2e 74 78 46 61 63 65 3b |hePort))|.txFace;|
|00000670| 0d 09 7d 20 2f 2a 67 65 | 74 66 6f 6e 74 73 69 7a |..} /*ge|tfontsiz|
|00000680| 65 73 74 79 6c 65 2a 2f | 0d 09 0d 09 0d 76 6f 69 |estyle*/|.....voi|
|00000690| 64 20 67 65 74 73 74 79 | 6c 65 20 28 73 68 6f 72 |d getsty|le (shor|
|000006a0| 74 20 73 74 79 6c 65 2c | 20 73 68 6f 72 74 20 2a |t style,| short *|
|000006b0| 66 6c 70 6c 61 69 6e 2c | 20 73 68 6f 72 74 20 2a |flplain,| short *|
|000006c0| 66 6c 62 6f 6c 64 2c 20 | 73 68 6f 72 74 20 2a 66 |flbold, |short *f|
|000006d0| 6c 69 74 61 6c 69 63 2c | 20 73 68 6f 72 74 20 2a |litalic,| short *|
|000006e0| 66 6c 75 6e 64 65 72 6c | 69 6e 65 2c 20 73 68 6f |flunderl|ine, sho|
|000006f0| 72 74 20 2a 66 6c 6f 75 | 74 6c 69 6e 65 2c 20 73 |rt *flou|tline, s|
|00000700| 68 6f 72 74 20 2a 66 6c | 73 68 61 64 6f 77 29 20 |hort *fl|shadow) |
|00000710| 7b 0d 0d 09 2f 2a 0d 09 | 67 69 76 65 20 6d 65 20 |{.../*..|give me |
|00000720| 61 20 73 74 79 6c 65 20 | 62 69 74 20 61 72 72 61 |a style |bit arra|
|00000730| 79 2c 20 61 6e 64 20 49 | 27 6c 6c 20 65 78 74 72 |y, and I|'ll extr|
|00000740| 61 63 74 20 74 68 65 20 | 62 6f 6f 6c 65 61 6e 73 |act the |booleans|
|00000750| 20 77 68 69 63 68 20 61 | 72 65 20 0d 09 73 6c 69 | which a|re ..sli|
|00000760| 67 68 74 6c 79 20 65 61 | 73 69 65 72 20 74 6f 20 |ghtly ea|sier to |
|00000770| 64 65 61 6c 20 77 69 74 | 68 2e 0d 09 0d 09 69 66 |deal wit|h.....if|
|00000780| 20 6e 6f 6e 65 20 6f 66 | 20 74 68 65 20 6f 74 68 | none of| the oth|
|00000790| 65 72 73 20 61 72 65 20 | 74 72 75 65 2c 20 77 65 |ers are |true, we|
|000007a0| 20 73 65 74 20 66 6c 70 | 6c 61 69 6e 20 74 6f 20 | set flp|lain to |
|000007b0| 74 72 75 65 2e 20 20 6f | 74 68 65 72 77 69 73 65 |true. o|therwise|
|000007c0| 20 0d 09 66 6c 70 6c 61 | 69 6e 20 69 73 20 66 61 | ..flpla|in is fa|
|000007d0| 6c 73 65 2e 0d 09 2a 2f | 0d 0d 09 2a 66 6c 70 6c |lse...*/|...*flpl|
|000007e0| 61 69 6e 20 3d 20 74 72 | 75 65 3b 20 20 2f 2a 64 |ain = tr|ue; /*d|
|000007f0| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 73 2a 2f 0d |efault v|alues*/.|
|00000800| 09 0d 09 2a 66 6c 62 6f | 6c 64 20 3d 20 66 61 6c |...*flbo|ld = fal|
|00000810| 73 65 3b 0d 09 0d 09 2a | 66 6c 69 74 61 6c 69 63 |se;....*|flitalic|
|00000820| 20 3d 20 66 61 6c 73 65 | 3b 0d 09 0d 09 2a 66 6c | = false|;....*fl|
|00000830| 75 6e 64 65 72 6c 69 6e | 65 20 3d 20 66 61 6c 73 |underlin|e = fals|
|00000840| 65 3b 0d 09 0d 09 2a 66 | 6c 6f 75 74 6c 69 6e 65 |e;....*f|loutline|
|00000850| 20 3d 20 66 61 6c 73 65 | 3b 0d 09 0d 09 2a 66 6c | = false|;....*fl|
|00000860| 73 68 61 64 6f 77 20 3d | 20 66 61 6c 73 65 3b 0d |shadow =| false;.|
|00000870| 09 0d 09 69 66 20 28 73 | 74 79 6c 65 20 3e 3d 20 |...if (s|tyle >= |
|00000880| 73 68 61 64 6f 77 29 20 | 7b 0d 09 09 0d 09 09 73 |shadow) |{......s|
|00000890| 74 79 6c 65 20 2d 3d 20 | 73 68 61 64 6f 77 3b 0d |tyle -= |shadow;.|
|000008a0| 09 09 0d 09 09 2a 66 6c | 73 68 61 64 6f 77 20 3d |.....*fl|shadow =|
|000008b0| 20 74 72 75 65 3b 0d 09 | 09 0d 09 09 2a 66 6c 70 | true;..|....*flp|
|000008c0| 6c 61 69 6e 20 3d 20 66 | 61 6c 73 65 3b 0d 09 09 |lain = f|alse;...|
|000008d0| 7d 0d 09 09 0d 09 69 66 | 20 28 73 74 79 6c 65 20 |}.....if| (style |
|000008e0| 3e 3d 20 6f 75 74 6c 69 | 6e 65 29 20 7b 0d 09 09 |>= outli|ne) {...|
|000008f0| 0d 09 09 73 74 79 6c 65 | 20 2d 3d 20 6f 75 74 6c |...style| -= outl|
|00000900| 69 6e 65 3b 0d 09 09 0d | 09 09 2a 66 6c 6f 75 74 |ine;....|..*flout|
|00000910| 6c 69 6e 65 20 3d 20 74 | 72 75 65 3b 0d 09 09 0d |line = t|rue;....|
|00000920| 09 09 2a 66 6c 70 6c 61 | 69 6e 20 3d 20 66 61 6c |..*flpla|in = fal|
|00000930| 73 65 3b 0d 09 09 7d 0d | 09 09 0d 09 69 66 20 28 |se;...}.|....if (|
|00000940| 73 74 79 6c 65 20 3e 3d | 20 75 6e 64 65 72 6c 69 |style >=| underli|
|00000950| 6e 65 29 20 7b 0d 09 09 | 0d 09 09 73 74 79 6c 65 |ne) {...|...style|
|00000960| 20 2d 3d 20 75 6e 64 65 | 72 6c 69 6e 65 3b 0d 09 | -= unde|rline;..|
|00000970| 09 0d 09 09 2a 66 6c 75 | 6e 64 65 72 6c 69 6e 65 |....*flu|nderline|
|00000980| 20 3d 20 74 72 75 65 3b | 0d 09 09 0d 09 09 2a 66 | = true;|......*f|
|00000990| 6c 70 6c 61 69 6e 20 3d | 20 66 61 6c 73 65 3b 0d |lplain =| false;.|
|000009a0| 09 09 7d 0d 09 09 0d 09 | 69 66 20 28 73 74 79 6c |..}.....|if (styl|
|000009b0| 65 20 3e 3d 20 69 74 61 | 6c 69 63 29 20 7b 0d 09 |e >= ita|lic) {..|
|000009c0| 09 0d 09 09 73 74 79 6c | 65 20 2d 3d 20 69 74 61 |....styl|e -= ita|
|000009d0| 6c 69 63 3b 0d 09 09 0d | 09 09 2a 66 6c 69 74 61 |lic;....|..*flita|
|000009e0| 6c 69 63 20 3d 20 74 72 | 75 65 3b 0d 09 09 0d 09 |lic = tr|ue;.....|
|000009f0| 09 2a 66 6c 70 6c 61 69 | 6e 20 3d 20 66 61 6c 73 |.*flplai|n = fals|
|00000a00| 65 3b 0d 09 09 7d 0d 09 | 09 0d 09 69 66 20 28 73 |e;...}..|...if (s|
|00000a10| 74 79 6c 65 20 3e 3d 20 | 62 6f 6c 64 29 20 7b 0d |tyle >= |bold) {.|
|00000a20| 09 09 0d 09 09 73 74 79 | 6c 65 20 2d 3d 20 62 6f |.....sty|le -= bo|
|00000a30| 6c 64 3b 0d 09 09 0d 09 | 09 2a 66 6c 62 6f 6c 64 |ld;.....|.*flbold|
|00000a40| 20 3d 20 74 72 75 65 3b | 0d 09 09 0d 09 09 2a 66 | = true;|......*f|
|00000a50| 6c 70 6c 61 69 6e 20 3d | 20 66 61 6c 73 65 3b 0d |lplain =| false;.|
|00000a60| 09 09 7d 0d 09 7d 20 2f | 2a 67 65 74 73 74 79 6c |..}..} /|*getstyl|
|00000a70| 65 2a 2f 0d 09 0d 0d 76 | 6f 69 64 20 63 68 65 63 |e*/....v|oid chec|
|00000a80| 6b 73 74 79 6c 65 20 28 | 62 6f 6f 6c 65 61 6e 20 |kstyle (|boolean |
|00000a90| 66 6c 2c 20 62 69 67 73 | 74 72 69 6e 67 20 62 73 |fl, bigs|tring bs|
|00000aa0| 69 6e 2c 20 62 69 67 73 | 74 72 69 6e 67 20 62 73 |in, bigs|tring bs|
|00000ab0| 6f 75 74 29 20 7b 0d 0d | 09 69 66 20 28 66 6c 29 |out) {..|.if (fl)|
|00000ac0| 20 7b 0d 09 09 69 66 20 | 28 62 73 6f 75 74 20 5b | {...if |(bsout [|
|00000ad0| 30 5d 29 20 7b 20 2f 2a | 61 6c 72 65 61 64 79 20 |0]) { /*|already |
|00000ae0| 73 6f 6d 65 74 68 69 6e | 67 20 6f 6e 20 74 68 65 |somethin|g on the|
|00000af0| 20 6f 75 74 70 75 74 20 | 73 74 72 69 6e 67 2a 2f | output |string*/|
|00000b00| 0d 09 09 0d 09 09 09 70 | 75 73 68 73 74 72 69 6e |.......p|ushstrin|
|00000b10| 67 20 28 73 74 79 6c 65 | 73 65 70 61 72 61 74 6f |g (style|separato|
|00000b20| 72 2c 20 62 73 6f 75 74 | 29 3b 0d 09 09 09 0d 09 |r, bsout|);......|
|00000b30| 09 09 70 75 73 68 73 74 | 72 69 6e 67 20 28 62 73 |..pushst|ring (bs|
|00000b40| 69 6e 2c 20 62 73 6f 75 | 74 29 3b 0d 09 09 09 7d |in, bsou|t);....}|
|00000b50| 0d 09 09 65 6c 73 65 0d | 09 09 09 63 6f 70 79 73 |...else.|...copys|
|00000b60| 74 72 69 6e 67 20 28 62 | 73 69 6e 2c 20 62 73 6f |tring (b|sin, bso|
|00000b70| 75 74 29 3b 0d 09 09 7d | 0d 09 7d 20 2f 2a 63 68 |ut);...}|..} /*ch|
|00000b80| 65 63 6b 73 74 79 6c 65 | 2a 2f 0d 09 09 0d 0d 73 |eckstyle|*/.....s|
|00000b90| 68 6f 72 74 20 67 65 74 | 66 6f 6e 74 68 65 69 67 |hort get|fontheig|
|00000ba0| 68 74 20 28 76 6f 69 64 | 29 20 7b 0d 09 0d 09 46 |ht (void|) {....F|
|00000bb0| 6f 6e 74 49 6e 66 6f 20 | 69 6e 66 6f 3b 0d 09 0d |ontInfo |info;...|
|00000bc0| 09 47 65 74 46 6f 6e 74 | 49 6e 66 6f 20 28 26 69 |.GetFont|Info (&i|
|00000bd0| 6e 66 6f 29 3b 0d 09 0d | 09 72 65 74 75 72 6e 20 |nfo);...|.return |
|00000be0| 28 69 6e 66 6f 2e 61 73 | 63 65 6e 74 20 2b 20 69 |(info.as|cent + i|
|00000bf0| 6e 66 6f 2e 64 65 73 63 | 65 6e 74 29 3b 0d 09 7d |nfo.desc|ent);..}|
|00000c00| 20 2f 2a 67 65 74 66 6f | 6e 74 68 65 69 67 68 74 | /*getfo|ntheight|
|00000c10| 2a 2f 0d 09 0d 09 0d 76 | 6f 69 64 20 66 6f 6e 74 |*/.....v|oid font|
|00000c20| 67 65 74 6e 61 6d 65 20 | 28 73 68 6f 72 74 20 66 |getname |(short f|
|00000c30| 6f 6e 74 6e 75 6d 2c 20 | 62 69 67 73 74 72 69 6e |ontnum, |bigstrin|
|00000c40| 67 20 66 6f 6e 74 6e 61 | 6d 65 29 20 7b 0d 09 0d |g fontna|me) {...|
|00000c50| 09 47 65 74 46 6f 6e 74 | 4e 61 6d 65 20 28 66 6f |.GetFont|Name (fo|
|00000c60| 6e 74 6e 75 6d 2c 20 66 | 6f 6e 74 6e 61 6d 65 29 |ntnum, f|ontname)|
|00000c70| 3b 0d 09 7d 20 2f 2a 66 | 6f 6e 74 67 65 74 6e 61 |;..} /*f|ontgetna|
|00000c80| 6d 65 2a 2f 0d 0d 0d 76 | 6f 69 64 20 66 6f 6e 74 |me*/...v|oid font|
|00000c90| 67 65 74 6e 75 6d 62 65 | 72 20 28 62 69 67 73 74 |getnumbe|r (bigst|
|00000ca0| 72 69 6e 67 20 66 6f 6e | 74 6e 61 6d 65 2c 20 73 |ring fon|tname, s|
|00000cb0| 68 6f 72 74 20 2a 66 6f | 6e 74 6e 75 6d 29 20 7b |hort *fo|ntnum) {|
|00000cc0| 0d 09 0d 09 69 66 20 28 | 73 74 72 69 6e 67 6c 65 |....if (|stringle|
|00000cd0| 6e 67 74 68 20 28 66 6f | 6e 74 6e 61 6d 65 29 20 |ngth (fo|ntname) |
|00000ce0| 3d 3d 20 30 29 0d 09 09 | 2a 66 6f 6e 74 6e 75 6d |== 0)...|*fontnum|
|00000cf0| 20 3d 20 67 65 6e 65 76 | 61 3b 0d 09 65 6c 73 65 | = genev|a;..else|
|00000d00| 0d 09 09 47 65 74 46 4e | 75 6d 20 28 28 70 74 72 |...GetFN|um ((ptr|
|00000d10| 73 74 72 69 6e 67 29 20 | 66 6f 6e 74 6e 61 6d 65 |string) |fontname|
|00000d20| 2c 20 66 6f 6e 74 6e 75 | 6d 29 3b 0d 09 7d 20 2f |, fontnu|m);..} /|
|00000d30| 2a 66 6f 6e 74 67 65 74 | 6e 75 6d 62 65 72 2a 2f |*fontget|number*/|
|00000d40| 0d 09 0d 0d 76 6f 69 64 | 20 64 69 73 6b 67 65 74 |....void| diskget|
|00000d50| 66 6f 6e 74 6e 61 6d 65 | 20 28 73 68 6f 72 74 20 |fontname| (short |
|00000d60| 66 6f 6e 74 6e 75 6d 2c | 20 64 69 73 6b 66 6f 6e |fontnum,| diskfon|
|00000d70| 74 73 74 72 69 6e 67 20 | 66 6f 6e 74 6e 61 6d 65 |tstring |fontname|
|00000d80| 29 20 7b 0d 09 0d 09 2f | 2a 0d 09 41 70 70 6c 65 |) {..../|*..Apple|
|00000d90| 20 72 65 63 6f 6d 6d 65 | 6e 64 73 20 74 68 61 74 | recomme|nds that|
|00000da0| 20 66 6f 6e 74 73 20 62 | 65 20 73 74 6f 72 65 64 | fonts b|e stored|
|00000db0| 20 6f 6e 20 64 69 73 6b | 20 61 73 20 73 74 72 69 | on disk| as stri|
|00000dc0| 6e 67 73 2e 20 20 77 65 | 20 72 65 74 75 72 6e 20 |ngs. we| return |
|00000dd0| 74 68 65 0d 09 66 6f 6e | 74 6e 61 6d 65 2c 20 6c |the..fon|tname, l|
|00000de0| 69 6d 69 74 65 64 20 69 | 6e 20 6c 65 6e 67 74 68 |imited i|n length|
|00000df0| 20 74 6f 20 33 32 2c 20 | 62 61 73 65 64 20 6f 6e | to 32, |based on|
|00000e00| 20 74 68 65 20 69 6e 64 | 69 63 61 74 65 64 20 66 | the ind|icated f|
|00000e10| 6f 6e 74 20 6e 75 6d 62 | 65 72 2e 0d 09 2a 2f 0d |ont numb|er...*/.|
|00000e20| 09 0d 09 62 69 67 73 74 | 72 69 6e 67 20 62 73 3b |...bigst|ring bs;|
|00000e30| 0d 09 0d 09 47 65 74 46 | 6f 6e 74 4e 61 6d 65 20 |....GetF|ontName |
|00000e40| 28 66 6f 6e 74 6e 75 6d | 2c 20 62 73 29 3b 0d 09 |(fontnum|, bs);..|
|00000e50| 0d 09 69 66 20 28 73 74 | 72 69 6e 67 6c 65 6e 67 |..if (st|ringleng|
|00000e60| 74 68 20 28 62 73 29 20 | 3e 20 64 69 73 6b 66 6f |th (bs) |> diskfo|
|00000e70| 6e 74 6e 61 6d 65 6c 65 | 6e 67 74 68 29 0d 09 09 |ntnamele|ngth)...|
|00000e80| 73 65 74 73 74 72 69 6e | 67 6c 65 6e 67 74 68 20 |setstrin|glength |
|00000e90| 28 62 73 2c 20 64 69 73 | 6b 66 6f 6e 74 6e 61 6d |(bs, dis|kfontnam|
|00000ea0| 65 6c 65 6e 67 74 68 29 | 3b 0d 09 0d 09 63 6f 70 |elength)|;....cop|
|00000eb0| 79 73 74 72 69 6e 67 20 | 28 62 73 2c 20 28 70 74 |ystring |(bs, (pt|
|00000ec0| 72 73 74 72 69 6e 67 29 | 20 66 6f 6e 74 6e 61 6d |rstring)| fontnam|
|00000ed0| 65 29 3b 0d 09 7d 20 2f | 2a 64 69 73 6b 67 65 74 |e);..} /|*diskget|
|00000ee0| 66 6f 6e 74 6e 61 6d 65 | 2a 2f 0d 0d 0d 76 6f 69 |fontname|*/...voi|
|00000ef0| 64 20 64 69 73 6b 67 65 | 74 66 6f 6e 74 6e 75 6d |d diskge|tfontnum|
|00000f00| 20 28 64 69 73 6b 66 6f | 6e 74 73 74 72 69 6e 67 | (diskfo|ntstring|
|00000f10| 20 66 6f 6e 74 6e 61 6d | 65 2c 20 73 68 6f 72 74 | fontnam|e, short|
|00000f20| 20 2a 66 6f 6e 74 6e 75 | 6d 29 20 7b 0d 09 0d 09 | *fontnu|m) {....|
|00000f30| 69 66 20 28 73 74 72 69 | 6e 67 6c 65 6e 67 74 68 |if (stri|nglength|
|00000f40| 20 28 66 6f 6e 74 6e 61 | 6d 65 29 20 3d 3d 20 30 | (fontna|me) == 0|
|00000f50| 29 0d 09 09 2a 66 6f 6e | 74 6e 75 6d 20 3d 20 67 |)...*fon|tnum = g|
|00000f60| 65 6e 65 76 61 3b 0d 09 | 65 6c 73 65 0d 09 09 47 |eneva;..|else...G|
|00000f70| 65 74 46 4e 75 6d 20 28 | 28 70 74 72 73 74 72 69 |etFNum (|(ptrstri|
|00000f80| 6e 67 29 20 66 6f 6e 74 | 6e 61 6d 65 2c 20 66 6f |ng) font|name, fo|
|00000f90| 6e 74 6e 75 6d 29 3b 0d | 09 7d 20 2f 2a 64 69 73 |ntnum);.|.} /*dis|
|00000fa0| 6b 67 65 74 66 6f 6e 74 | 6e 75 6d 2a 2f 0d 09 0d |kgetfont|num*/...|
|00000fb0| 0d 76 6f 69 64 20 67 65 | 74 6e 65 78 74 66 6f 6e |.void ge|tnextfon|
|00000fc0| 74 20 28 73 68 6f 72 74 | 20 2a 66 6f 6e 74 6e 75 |t (short| *fontnu|
|00000fd0| 6d 29 20 7b 0d 09 0d 09 | 2f 2a 0d 09 72 65 67 69 |m) {....|/*..regi|
|00000fe0| 73 74 65 72 20 4d 65 6e | 75 48 61 6e 64 6c 65 20 |ster Men|uHandle |
|00000ff0| 68 6d 65 6e 75 20 3d 20 | 68 64 6c 66 6f 6e 74 6d |hmenu = |hdlfontm|
|00001000| 65 6e 75 3b 0d 09 72 65 | 67 69 73 74 65 72 20 73 |enu;..re|gister s|
|00001010| 68 6f 72 74 20 69 2c 20 | 63 74 69 74 65 6d 73 3b |hort i, |ctitems;|
|00001020| 0d 09 62 69 67 73 74 72 | 69 6e 67 20 66 6f 6e 74 |..bigstr|ing font|
|00001030| 6e 61 6d 65 2c 20 62 73 | 3b 0d 09 0d 09 47 65 74 |name, bs|;....Get|
|00001040| 46 6f 6e 74 4e 61 6d 65 | 20 28 2a 66 6f 6e 74 6e |FontName| (*fontn|
|00001050| 75 6d 2c 20 66 6f 6e 74 | 6e 61 6d 65 29 3b 0d 09 |um, font|name);..|
|00001060| 0d 09 63 74 69 74 65 6d | 73 20 3d 20 43 6f 75 6e |..ctitem|s = Coun|
|00001070| 74 4d 49 74 65 6d 73 20 | 28 68 6d 65 6e 75 29 3b |tMItems |(hmenu);|
|00001080| 0d 09 0d 09 66 6f 72 20 | 28 69 20 3d 20 31 3b 20 |....for |(i = 1; |
|00001090| 69 20 3c 3d 20 63 74 69 | 74 65 6d 73 3b 20 69 2b |i <= cti|tems; i+|
|000010a0| 2b 29 20 7b 0d 09 09 0d | 09 09 47 65 74 49 74 65 |+) {....|..GetIte|
|000010b0| 6d 20 28 68 6d 65 6e 75 | 2c 20 69 2c 20 62 73 29 |m (hmenu|, i, bs)|
|000010c0| 3b 0d 09 09 0d 09 09 69 | 66 20 28 75 6e 69 63 61 |;......i|f (unica|
|000010d0| 73 65 65 71 75 61 6c 73 | 74 72 69 6e 67 73 20 28 |seequals|trings (|
|000010e0| 62 73 2c 20 66 6f 6e 74 | 6e 61 6d 65 29 29 20 7b |bs, font|name)) {|
|000010f0| 0d 09 09 09 0d 09 09 09 | 69 66 20 28 69 20 3d 3d |........|if (i ==|
|00001100| 20 63 74 69 74 65 6d 73 | 29 0d 09 09 09 09 47 65 | ctitems|).....Ge|
|00001110| 74 49 74 65 6d 20 28 68 | 6d 65 6e 75 2c 20 31 2c |tItem (h|menu, 1,|
|00001120| 20 66 6f 6e 74 6e 61 6d | 65 29 3b 0d 09 09 09 65 | fontnam|e);....e|
|00001130| 6c 73 65 0d 09 09 09 09 | 47 65 74 49 74 65 6d 20 |lse.....|GetItem |
|00001140| 28 68 6d 65 6e 75 2c 20 | 69 20 2b 20 31 2c 20 66 |(hmenu, |i + 1, f|
|00001150| 6f 6e 74 6e 61 6d 65 29 | 3b 0d 09 09 09 09 0d 09 |ontname)|;.......|
|00001160| 09 09 47 65 74 46 4e 75 | 6d 20 28 66 6f 6e 74 6e |..GetFNu|m (fontn|
|00001170| 61 6d 65 2c 20 66 6f 6e | 74 6e 75 6d 29 3b 0d 09 |ame, fon|tnum);..|
|00001180| 09 09 09 0d 09 09 09 72 | 65 74 75 72 6e 3b 0d 09 |.......r|eturn;..|
|00001190| 09 09 7d 0d 09 09 7d 20 | 2f 25 66 6f 72 25 2f 0d |..}...} |/%for%/.|
|000011a0| 09 09 0d 09 2a 66 6f 6e | 74 6e 75 6d 20 3d 20 61 |....*fon|tnum = a|
|000011b0| 70 70 6c 46 6f 6e 74 3b | 20 2f 25 74 68 65 20 69 |pplFont;| /%the i|
|000011c0| 6e 70 75 74 20 66 6f 6e | 74 20 69 73 6e 27 74 20 |nput fon|t isn't |
|000011d0| 6f 6e 20 74 68 69 73 20 | 73 79 73 74 65 6d 25 2f |on this |system%/|
|000011e0| 0d 09 2a 2f 0d 09 7d 20 | 2f 2a 67 65 74 6e 65 78 |..*/..} |/*getnex|
|000011f0| 74 66 6f 6e 74 2a 2f 0d | 09 0d 09 0d 76 6f 69 64 |tfont*/.|....void|
|00001200| 20 67 65 74 70 72 65 76 | 66 6f 6e 74 20 28 73 68 | getprev|font (sh|
|00001210| 6f 72 74 20 2a 66 6f 6e | 74 6e 75 6d 29 20 7b 0d |ort *fon|tnum) {.|
|00001220| 09 0d 09 2f 2a 0d 09 72 | 65 67 69 73 74 65 72 20 |.../*..r|egister |
|00001230| 4d 65 6e 75 48 61 6e 64 | 6c 65 20 68 6d 65 6e 75 |MenuHand|le hmenu|
|00001240| 20 3d 20 68 64 6c 66 6f | 6e 74 6d 65 6e 75 3b 0d | = hdlfo|ntmenu;.|
|00001250| 09 72 65 67 69 73 74 65 | 72 20 73 68 6f 72 74 20 |.registe|r short |
|00001260| 69 2c 20 63 74 69 74 65 | 6d 73 3b 0d 09 62 69 67 |i, ctite|ms;..big|
|00001270| 73 74 72 69 6e 67 20 66 | 6f 6e 74 6e 61 6d 65 2c |string f|ontname,|
|00001280| 20 62 73 3b 0d 09 0d 09 | 47 65 74 46 6f 6e 74 4e | bs;....|GetFontN|
|00001290| 61 6d 65 20 28 2a 66 6f | 6e 74 6e 75 6d 2c 20 66 |ame (*fo|ntnum, f|
|000012a0| 6f 6e 74 6e 61 6d 65 29 | 3b 0d 09 0d 09 63 74 69 |ontname)|;....cti|
|000012b0| 74 65 6d 73 20 3d 20 43 | 6f 75 6e 74 4d 49 74 65 |tems = C|ountMIte|
|000012c0| 6d 73 20 28 68 6d 65 6e | 75 29 3b 0d 09 0d 09 66 |ms (hmen|u);....f|
|000012d0| 6f 72 20 28 69 20 3d 20 | 31 3b 20 69 20 3c 3d 20 |or (i = |1; i <= |
|000012e0| 63 74 69 74 65 6d 73 3b | 20 69 2b 2b 29 20 7b 0d |ctitems;| i++) {.|
|000012f0| 09 09 0d 09 09 47 65 74 | 49 74 65 6d 20 28 68 6d |.....Get|Item (hm|
|00001300| 65 6e 75 2c 20 69 2c 20 | 62 73 29 3b 0d 09 09 0d |enu, i, |bs);....|
|00001310| 09 09 69 66 20 28 75 6e | 69 63 61 73 65 65 71 75 |..if (un|icaseequ|
|00001320| 61 6c 73 74 72 69 6e 67 | 73 20 28 62 73 2c 20 66 |alstring|s (bs, f|
|00001330| 6f 6e 74 6e 61 6d 65 29 | 29 20 7b 0d 09 09 09 0d |ontname)|) {.....|
|00001340| 09 09 09 69 66 20 28 69 | 20 3d 3d 20 31 29 0d 09 |...if (i| == 1)..|
|00001350| 09 09 09 47 65 74 49 74 | 65 6d 20 28 68 6d 65 6e |...GetIt|em (hmen|
|00001360| 75 2c 20 63 74 69 74 65 | 6d 73 2c 20 66 6f 6e 74 |u, ctite|ms, font|
|00001370| 6e 61 6d 65 29 3b 0d 09 | 09 09 65 6c 73 65 0d 09 |name);..|..else..|
|00001380| 09 09 09 47 65 74 49 74 | 65 6d 20 28 68 6d 65 6e |...GetIt|em (hmen|
|00001390| 75 2c 20 69 20 2d 20 31 | 2c 20 66 6f 6e 74 6e 61 |u, i - 1|, fontna|
|000013a0| 6d 65 29 3b 0d 09 09 09 | 09 0d 09 09 09 47 65 74 |me);....|.....Get|
|000013b0| 46 4e 75 6d 20 28 66 6f | 6e 74 6e 61 6d 65 2c 20 |FNum (fo|ntname, |
|000013c0| 66 6f 6e 74 6e 75 6d 29 | 3b 0d 09 09 09 09 0d 09 |fontnum)|;.......|
|000013d0| 09 09 72 65 74 75 72 6e | 3b 0d 09 09 09 7d 0d 09 |..return|;....}..|
|000013e0| 09 7d 20 2f 25 66 6f 72 | 25 2f 0d 09 09 0d 09 2a |.} /%for|%/.....*|
|000013f0| 66 6f 6e 74 6e 75 6d 20 | 3d 20 61 70 70 6c 46 6f |fontnum |= applFo|
|00001400| 6e 74 3b 20 2f 25 74 68 | 65 20 69 6e 70 75 74 20 |nt; /%th|e input |
|00001410| 66 6f 6e 74 20 69 73 6e | 27 74 20 6f 6e 20 74 68 |font isn|'t on th|
|00001420| 69 73 20 73 79 73 74 65 | 6d 25 2f 0d 09 2a 2f 0d |is syste|m%/..*/.|
|00001430| 09 7d 20 2f 2a 67 65 74 | 70 72 65 76 66 6f 6e 74 |.} /*get|prevfont|
|00001440| 2a 2f 0d 09 0d 09 0d 76 | 6f 69 64 20 67 65 74 6e |*/.....v|oid getn|
|00001450| 65 78 74 73 74 79 6c 65 | 20 28 73 68 6f 72 74 20 |extstyle| (short |
|00001460| 2a 73 74 79 6c 65 29 20 | 7b 20 0d 09 0d 09 72 65 |*style) |{ ....re|
|00001470| 67 69 73 74 65 72 20 73 | 68 6f 72 74 20 69 3b 0d |gister s|hort i;.|
|00001480| 09 0d 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |...for (|i = 0; i|
|00001490| 20 3c 20 63 74 73 74 79 | 6c 65 73 3b 20 69 2b 2b | < ctsty|les; i++|
|000014a0| 29 20 7b 0d 09 09 0d 09 | 09 69 66 20 28 2a 73 74 |) {.....|.if (*st|
|000014b0| 79 6c 65 20 3d 3d 20 73 | 74 79 6c 65 73 61 72 72 |yle == s|tylesarr|
|000014c0| 61 79 20 5b 69 5d 29 20 | 7b 0d 09 09 09 0d 09 09 |ay [i]) |{.......|
|000014d0| 09 69 66 20 28 69 20 3d | 3d 20 28 63 74 73 74 79 |.if (i =|= (ctsty|
|000014e0| 6c 65 73 20 2d 20 31 29 | 29 20 0d 09 09 09 09 2a |les - 1)|) .....*|
|000014f0| 73 74 79 6c 65 20 3d 20 | 73 74 79 6c 65 73 61 72 |style = |stylesar|
|00001500| 72 61 79 20 5b 30 5d 3b | 0d 09 09 09 65 6c 73 65 |ray [0];|....else|
|00001510| 0d 09 09 09 09 2a 73 74 | 79 6c 65 20 3d 20 73 74 |.....*st|yle = st|
|00001520| 79 6c 65 73 61 72 72 61 | 79 20 5b 69 20 2b 20 31 |ylesarra|y [i + 1|
|00001530| 5d 3b 0d 09 09 09 09 0d | 09 09 09 72 65 74 75 72 |];......|...retur|
|00001540| 6e 3b 0d 09 09 09 7d 0d | 09 09 7d 20 2f 2a 66 6f |n;....}.|..} /*fo|
|00001550| 72 2a 2f 0d 09 09 0d 09 | 2a 73 74 79 6c 65 20 3d |r*/.....|*style =|
|00001560| 20 73 74 79 6c 65 73 61 | 72 72 61 79 20 5b 30 5d | stylesa|rray [0]|
|00001570| 3b 0d 09 7d 20 2f 2a 67 | 65 74 6e 65 78 74 73 74 |;..} /*g|etnextst|
|00001580| 79 6c 65 2a 2f 0d 09 0d | 09 0d 76 6f 69 64 20 67 |yle*/...|..void g|
|00001590| 65 74 70 72 65 76 73 74 | 79 6c 65 20 28 73 68 6f |etprevst|yle (sho|
|000015a0| 72 74 20 2a 73 74 79 6c | 65 29 20 7b 20 0d 09 0d |rt *styl|e) { ...|
|000015b0| 09 72 65 67 69 73 74 65 | 72 20 73 68 6f 72 74 20 |.registe|r short |
|000015c0| 69 3b 0d 09 0d 09 66 6f | 72 20 28 69 20 3d 20 30 |i;....fo|r (i = 0|
|000015d0| 3b 20 69 20 3c 20 63 74 | 73 74 79 6c 65 73 3b 20 |; i < ct|styles; |
|000015e0| 69 2b 2b 29 20 7b 0d 09 | 09 0d 09 09 69 66 20 28 |i++) {..|....if (|
|000015f0| 2a 73 74 79 6c 65 20 3d | 3d 20 73 74 79 6c 65 73 |*style =|= styles|
|00001600| 61 72 72 61 79 20 5b 69 | 5d 29 20 7b 0d 09 09 09 |array [i|]) {....|
|00001610| 0d 09 09 09 69 66 20 28 | 69 20 3d 3d 20 30 29 20 |....if (|i == 0) |
|00001620| 0d 09 09 09 09 2a 73 74 | 79 6c 65 20 3d 20 73 74 |.....*st|yle = st|
|00001630| 79 6c 65 73 61 72 72 61 | 79 20 5b 63 74 73 74 79 |ylesarra|y [ctsty|
|00001640| 6c 65 73 20 2d 20 31 5d | 3b 0d 09 09 09 65 6c 73 |les - 1]|;....els|
|00001650| 65 0d 09 09 09 09 2a 73 | 74 79 6c 65 20 3d 20 73 |e.....*s|tyle = s|
|00001660| 74 79 6c 65 73 61 72 72 | 61 79 20 5b 69 20 2d 20 |tylesarr|ay [i - |
|00001670| 31 5d 3b 0d 09 09 09 0d | 09 09 09 72 65 74 75 72 |1];.....|...retur|
|00001680| 6e 3b 0d 09 09 09 7d 0d | 09 09 7d 20 2f 2a 66 6f |n;....}.|..} /*fo|
|00001690| 72 2a 2f 0d 09 09 0d 09 | 2a 73 74 79 6c 65 20 3d |r*/.....|*style =|
|000016a0| 20 73 74 79 6c 65 73 61 | 72 72 61 79 20 5b 30 5d | stylesa|rray [0]|
|000016b0| 3b 0d 09 7d 20 2f 2a 67 | 65 74 70 72 65 76 73 74 |;..} /*g|etprevst|
|000016c0| 79 6c 65 2a 2f 0d 09 0d | 09 0d 00 00 00 00 00 00 |yle*/...|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001710| 61 72 64 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |ard.h".#|include |
|00001720| 22 66 6f 6e 74 2e 68 22 | 0d 0d 0d 23 64 65 66 69 |"font.h"|...#defi|
|00001730| 0c 61 70 70 6c 65 74 66 | 6f 6e 74 2e 63 d6 02 00 |.appletf|ont.c...|
|00001740| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001750| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 a9 81 44 c8 00 00 | 00 00 00 00 01 7e 2c 20 |....D...|.....~, |
|00001780| 66 6f 6e 74 73 69 7a 65 | 2c 20 66 6f 6e 74 73 74 |fontsize|, fontst|
|00001790| 79 6c 65 29 20 69 6e 74 | 20 66 6f 6e 74 6e 75 6d |yle) int| fontnum|
|000017a0| 2c 20 66 6f 6e 74 73 69 | 7a 65 2c 20 66 6f 6e 74 |, fontsi|ze, font|
|000017b0| 73 74 79 6c 65 3b 20 7b | 0d 0d 09 54 65 78 74 46 |style; {|...TextF|
|000017c0| 6f 6e 74 20 28 66 6f 6e | 74 6e 75 6d 29 3b 0d 09 |ont (fon|tnum);..|
|000017d0| 0d 09 54 65 78 74 53 69 | 7a 65 20 28 66 6f 6e 74 |..TextSi|ze (font|
|000017e0| 73 69 7a 65 29 3b 0d 09 | 0d 09 54 65 78 74 46 61 |size);..|..TextFa|
|000017f0| 63 65 20 28 66 6f 6e 74 | 73 74 79 6c 65 29 3b 0d |ce (font|style);.|
|00001800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 b4 00 0c |...H..Mo|naco....|
|00001810| 00 b4 02 2e 01 ce 00 0c | 01 ce 02 2e 7f f5 80 0a |........|........|
|00001820| 7f f5 7f f5 00 00 00 06 | 00 04 00 b4 00 0c 01 dd |........|........|
|00001830| 02 3d 00 b4 00 0c 01 dd | 02 3d a3 67 1e cb 00 00 |.=......|.=.g....|
|00001840| 00 49 00 00 00 49 00 00 | 00 00 01 00 00 00 01 00 |.I...I..|........|
|00001850| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 ed cb 18 |...L...L|...2....|
|00001860| 0d 98 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001870| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+